package cn.tedu.mybatis.mapper;

import cn.tedu.mybatis.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    int insert(Admin admin); //抽象方法

    int deleteById(Long id);
    int deleteByIds(List<Long> ids);


    int updatePasswordById(@Param("id")Long id,
                       @Param("password") String password);

    int count();
    Admin getById(Long id);
    List<Admin> list();


}
